#ifndef _HOLYSHIELD_LOGREAD
#define _HOLYSHIELD_LOGREAD

//#include <config.h>
//#include <gnome.h>
#include <gtk/gtk.h>
#include <libgnomevfs/gnome-vfs.h>
#include "holyshield.h"

#define FILE_BUF 4096

void open_logfile (char *logpath);

void logread_async_read_callback (GnomeVFSAsyncHandle *handle, GnomeVFSResult result, gpointer buffer,
                                  GnomeVFSFileSize bytes_requested, GnomeVFSFileSize bytes_read, gpointer data);

Hit *parse_log_line (gchar *line);

typedef struct _Parse Parse;
struct _Parse
{
	gchar *buffer;
	GPatternSpec *pattern;
	int half_line;
	GnomeVFSFileSize size;
	GnomeVFSFileSize bytes_read;
	GnomeVFSAsyncHandle *handle;
	gboolean continuous;
};

#endif
